import { ENUM_BOOK_TYPE, NumberTransOption } from "qqlx-core";

export const MAP_ENUM_BOOK_TYPE = new Map<ENUM_BOOK_TYPE, NumberTransOption>();

MAP_ENUM_BOOK_TYPE.set(ENUM_BOOK_TYPE.NONE, {
  value: ENUM_BOOK_TYPE.NONE,
  zh: "无",
});
MAP_ENUM_BOOK_TYPE.set(ENUM_BOOK_TYPE.CUN_KUAN_ZHANG_HU, {
  value: ENUM_BOOK_TYPE.CUN_KUAN_ZHANG_HU,
  zh: "基本存款账户",
});
MAP_ENUM_BOOK_TYPE.set(ENUM_BOOK_TYPE.YING_JIAO_SHUI_FEI, {
  value: ENUM_BOOK_TYPE.YING_JIAO_SHUI_FEI,
  zh: "应交税费",
});
MAP_ENUM_BOOK_TYPE.set(ENUM_BOOK_TYPE.YING_SHOU_ZHANG_KUAN_ORDER, {
  value: ENUM_BOOK_TYPE.YING_SHOU_ZHANG_KUAN_ORDER,
  zh: "应收账款（合同）",
});
MAP_ENUM_BOOK_TYPE.set(ENUM_BOOK_TYPE.YING_SHOU_ZHANG_KUAN_CHECKING, {
  value: ENUM_BOOK_TYPE.YING_SHOU_ZHANG_KUAN_CHECKING,
  zh: "应收账款（待认领）",
});
MAP_ENUM_BOOK_TYPE.set(ENUM_BOOK_TYPE.YING_SHOU_ZHANG_KUAN_RETURN_ORDER, {
  value: ENUM_BOOK_TYPE.YING_SHOU_ZHANG_KUAN_RETURN_ORDER,
  zh: "应收账款（退款合同）",
});
MAP_ENUM_BOOK_TYPE.set(ENUM_BOOK_TYPE.YING_SHOU_ZHANG_KUAN_RETURN_CHECKING, {
  value: ENUM_BOOK_TYPE.YING_SHOU_ZHANG_KUAN_RETURN_CHECKING,
  zh: "应收账款（退款待认领）",
});
MAP_ENUM_BOOK_TYPE.set(ENUM_BOOK_TYPE.YING_FU_ZHANG_KUAN_ORDER, {
  value: ENUM_BOOK_TYPE.YING_FU_ZHANG_KUAN_ORDER,
  zh: "应付账款（合同）",
});
MAP_ENUM_BOOK_TYPE.set(ENUM_BOOK_TYPE.YING_FU_ZHANG_KUAN_CHECKING, {
  value: ENUM_BOOK_TYPE.YING_FU_ZHANG_KUAN_CHECKING,
  zh: "应付账款（未审核）",
});
MAP_ENUM_BOOK_TYPE.set(ENUM_BOOK_TYPE.ZHU_YING_YE_WU_SHOU_RU_ORDER, {
  value: ENUM_BOOK_TYPE.ZHU_YING_YE_WU_SHOU_RU_ORDER,
  zh: "主营业务收入（合同）",
});
MAP_ENUM_BOOK_TYPE.set(ENUM_BOOK_TYPE.ZHU_YING_YE_WU_SHOU_RU_CHECKING, {
  value: ENUM_BOOK_TYPE.ZHU_YING_YE_WU_SHOU_RU_CHECKING,
  zh: "主营业务收入（未审核）",
});
MAP_ENUM_BOOK_TYPE.set(ENUM_BOOK_TYPE.ZHU_YING_YE_WU_SHOU_RU_TAX, {
  value: ENUM_BOOK_TYPE.ZHU_YING_YE_WU_SHOU_RU_TAX,
  zh: "主营业务收入（已开发票）",
});
MAP_ENUM_BOOK_TYPE.set(ENUM_BOOK_TYPE.ZHU_YING_YE_WU_SHOU_RU_RETURN_ORDER, {
  value: ENUM_BOOK_TYPE.ZHU_YING_YE_WU_SHOU_RU_RETURN_ORDER,
  zh: "主营业务收入（退款合同）",
});
MAP_ENUM_BOOK_TYPE.set(ENUM_BOOK_TYPE.ZHU_YING_YE_WU_SHOU_RU_RETURN_CHECKING, {
  value: ENUM_BOOK_TYPE.ZHU_YING_YE_WU_SHOU_RU_RETURN_CHECKING,
  zh: "主营业务收入（退款未审核）",
});
MAP_ENUM_BOOK_TYPE.set(ENUM_BOOK_TYPE.ZHU_YING_YE_WU_CHENG_BEN_ORDER, {
  value: ENUM_BOOK_TYPE.ZHU_YING_YE_WU_CHENG_BEN_ORDER,
  zh: "主营业务成本（合同）",
});
MAP_ENUM_BOOK_TYPE.set(ENUM_BOOK_TYPE.ZHU_YING_YE_WU_CHENG_BEN_CHECKING, {
  value: ENUM_BOOK_TYPE.ZHU_YING_YE_WU_CHENG_BEN_CHECKING,
  zh: "主营业务成本（未审核）",
});
MAP_ENUM_BOOK_TYPE.set(ENUM_BOOK_TYPE.ZHU_YING_YE_WU_CHENG_BEN_TAX, {
  value: ENUM_BOOK_TYPE.ZHU_YING_YE_WU_CHENG_BEN_TAX,
  zh: "主营业务成本（收到发票）",
});

export const getBookTypeTrans = function (code: ENUM_BOOK_TYPE) {
  return MAP_ENUM_BOOK_TYPE.get(code);
};
